package com.sc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@ApiModel("巡更巡检报告实体类")
@TableName("Csm_patrol_business")
public class PatrolReport {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("日期")
    @TableField("date")
    @DateTimeFormat(pattern = "YYYY-MM-DD")
    private LocalDate date;

    @ApiModelProperty("计划巡更任务")
    @TableField("plan_patrol_task")
    private Integer planPatrolTask;

    @ApiModelProperty("按时完成")
    @TableField("on_time_complete")
    private Integer onTimeComplete;

    @ApiModelProperty("超时完成")
    @TableField("timeout_complete")
    private Integer timeoutComplete;

    @ApiModelProperty("超时未完成")
    @TableField("timeout_not_complete")
    private Integer timeoutNotComplete;

    @ApiModelProperty("进行中")
    @TableField("underway")
    private Integer underway;

    @ApiModelProperty("未开始")
    @TableField("not_start")
    private Integer notStart;
}
